﻿using SCG.SolarVengeanceEngine;
using SCG.TurboSprite;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace SCG.SolarVengeance
{
    public class WormholeSprite : RotatedBitmapSprite
    {
        //constructor
        public WormholeSprite(Wormhole wh, Bitmap bmp)
            : base(bmp, 60)
        {
            SpinSpeed = 5;
            Wormhole = wh;
        }

        //The Wormhole
        public Wormhole Wormhole { get; set; }

        //render
        public override void Render(Graphics g)
        {
            if (!Wormhole.DiscoveredByCurrentPlayer)
                return;
            base.Render(g);
        }
    }
}
